﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace KYKJ.Monitor.Core.Communication.Structs
{
    /// <summary>
    /// 用户登录
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct LoginStruct
    {
        /// <summary>
        /// 用户名，长度20
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
        public byte[] UserName;

        /// <summary>
        /// 密码，长度20
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
        public byte[] PassWord;
    }
}
